﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="tlogin.aspx.cs" Inherits="Html5.tlogin" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title><%= SectionProxyData.GetSetValue(2)%></title>
    <link type="text/css" rel="stylesheet" href="/css/style.css?v=1" />
    <link type="text/css" rel="stylesheet" href="/css/page.css?v=1" />
    <link href="/css/shopcenter.css" rel="stylesheet" />


    <link href="../css/sweetalert.css" rel="stylesheet" />

    <script src="/javascript/jquery.js"></script>
        <style type="text/css">
        .time {
            width:100%;
        }
        .time .w_txt {
            width:80%;
    }
    </style>
</head>
<body>
    <div class="page">
        <div id="page_title">
            <h1>商家登陆</h1>
           
        </div>
        <form method="post" action="tlogin.aspx?returnurl=<%= Request["returnurl"]%>" data-ajax="false">
            <div class="container">

                <div style="text-align:center; display:none;">
                    <img src="../images/logo.png" />

                </div>
                <div id="divError" runat="server" class="error_list" style="color: #FF6000; margin-left: 15px;"></div>
                <ul class="my_order_list">
                    <li>
                        <div class="order-tit">
                            <span class="time"><strong>账号</strong>
                                <input name="tbuserName" type="text" runat="server" id="tbuserName" class="w_txt" placeholder="请输入商户账号" />
                            </span>
                        </div>
                        <div class="order-tit" style="border-bottom:none;">
                            <span class="time"><strong>密码</strong>
                                <input name="tbpassword" type="password" id="tbpassword" class="w_txt" placeholder="请输入登录密码" />
                            </span>
                        </div>
                    </li>
                </ul>
                
                <div class="view_back_con">
                    <input type="submit" id="btsubmit" value="登录" onclick="return checkuser()" class="view_back_btn" data-ajax="false" />
                </div>

            </div>
        </form>
    </div>
</body>
</html>
<script src="/javascript/spin.min.js"></script>
<script src="/javascript/sweetalert.min.js"></script>
<script src="/javascript/jCommon.js"></script>

<script type="text/javascript">

    //检查用户名称
    function checkuser() {

        var name = document.getElementById("tbuserName").value;
        var password = document.getElementById("tbpassword").value;
        if (name == "") {
            swal("提示", "请输入商户账号", "error")

            return false;
        }
        if (password == "" || password == "请输入登录密码") {

            sweetAlert("", "请输入登录密码!", "error");
            return false;
        }
        Loader.show("#btsubmit");
        return true;
    }

</script>

